package com.woody.aggregate.application.exception;

import com.woody.aggregate.enums.BusinessExceptionEnum;
import com.woody.base.exception.BaseException;

/**
 * 业务异常
 */
public class BusinessException extends BaseException {

    public BusinessException(Integer code, String message) {
        super(code, message);
    }

    public BusinessException(BusinessExceptionEnum businessExceptionEnum) {
        super(businessExceptionEnum.getCode(), businessExceptionEnum.getMsg());
    }
}
